package kr.hyunist.memoappproject.DTO;

public class MyMemo implements Comparable<MyMemo>{
	int Id;
	String Title;
	String Contents;
	String Time;

	public MyMemo(int id, String title, String contents, String time) {
		super();
		Id = id;
		Title = title;
		Contents = contents;
		Time = time;
	}

	public int getId() {
		return Id;
	}

	public String getTitle() {
		return Title;
	}

	public String getContents() {
		return Contents;
	}

	public String getTime() {
		return Time;
	}

	public void setId(int id) {
		Id = id;
	}

	public void setTitle(String title) {
		Title = title;
	}

	public void setContents(String contents) {
		Contents = contents;
	}

	public void setTime(String time) {
		Time = time;
	}

	@Override
	public int compareTo(MyMemo another) {
		return Title.compareTo(another.Title);
	}

	
}
